package fti.uksw.ruang.dialog;

import fti.uksw.ruang.R;
import android.content.Context;
import android.util.AttributeSet;
import android.view.Gravity;
import android.view.LayoutInflater;
import android.widget.Button;
import android.widget.LinearLayout;

public class OkCancelBar extends LinearLayout{

	public OkCancelBar(Context context, AttributeSet attrs) {
		super(context, attrs);
		setGravity(Gravity.RIGHT);
		setOrientation(HORIZONTAL);
		
		LayoutInflater.from(context).inflate(R.layout.okcancelbar, this, true);
		
		String text = "Save";
		((Button) findViewById(R.id.okcancelbar_ok)).setText(text);
		
		text = "Cancel";
		((Button) findViewById(R.id.okcancelbar_cancel)).setText(text);
	}

}
